package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
*
* @author quan
* @date 2021-11-22 1:37
*/
 

@Data
@TableName(value = "t_message_detail")
@Accessors(chain = true)
public class TMessageDetail {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "title")
    private String title;

    /**
     * 消息内容
     */
    @TableField(value = "body")
    private String body;

    /**
     * 消息类型：1-系统,2-资讯
     */
    @TableField(value = "type")
    private Byte type;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private Long createUserId;

    /**
     * 上次修改时间
     */
    @TableField(value = "last_modify_time")
    private LocalDateTime lastModifyTime;

    /**
     * 上次修改人
     */
    @TableField(value = "last_modify_user_id")
    private Long lastModifyUserId;

    /**
     * 消息状态（（-1-作废,0-未提交，1-待审核，2-已审核，3-审核不通过，4-已发布））
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 是否全部发送：0-否，1-是
     */
    @TableField(value = "if_all")
    private Byte ifAll;

    /**
     * 是否延时发送：0-否，1-是
     */
    @TableField(value = "if_delay")
    private Byte ifDelay;

    /**
     * 发送时间
     */
    @TableField(value = "push_time")
    private LocalDateTime pushTime;

    /**
     * 审核人
     */
    @TableField(value = "audit_user_id")
    private Long auditUserId;

    @TableField(value = "create_user_name")
    private String createUserName;

    @TableField(value = "last_modify_user_name")
    private String lastModifyUserName;

    @TableField(value = "audit_user_name")
    private String auditUserName;

    /**
     * 审核意见
     */
    @TableField(value = "audit_opinion")
    private String auditOpinion;

    /**
     * 消息推送返回的id
     */
    @TableField(value = "message_id")
    private String messageId;

    /**
     * 发布时间
     */
    @TableField(value = "publish_time")
    private LocalDateTime publishTime;

    /**
     * 发布人id
     */
    @TableField(value = "publish_user_id")
    private Long publishUserId;

    /**
     * 发布人名称
     */
    @TableField(value = "publish_user_name")
    private String publishUserName;

    /**
     * 提交时间
     */
    @TableField(value = "commit_time")
    private LocalDateTime commitTime;

    /**
     * 提交人id
     */
    @TableField(value = "commit_user_id")
    private Long commitUserId;

    /**
     * 提交人名称
     */
    @TableField(value = "commit_user_name")
    private String commitUserName;

    /**
     * 撤销时间
     */
    @TableField(value = "cancel_time")
    private LocalDateTime cancelTime;

    /**
     * 撤销人id
     */
    @TableField(value = "cancel_user_id")
    private Long cancelUserId;

    /**
     * 撤销人名称
     */
    @TableField(value = "cancel_user_name")
    private String cancelUserName;

    /**
     * 审核时间
     */
    @TableField(value = "audit_time")
    private LocalDateTime auditTime;
}